#include "Timer.h"
#include "PerformanceTimer.h"
#include "StandardTimer.h"

Timer::Timer()
{
#ifdef WIN32
	m_timer = new PerformanceTimer();
#else
	m_timer = new StandardTimer;
#endif
}

Time& Timer::getTime()
{
	return m_timer->getTime();
}

void Timer::Update()
{
	m_timer->Tick();
}